/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package UserInterface;

import javax.swing.SwingWorker;

/**
 *
 * @author Home
 */
public class TSW extends SwingWorker<Void, Void> {

    @Override
    protected Void doInBackground() throws Exception {
        for (int i = 0; i < 51; i++) {
           Thread.sleep(100);
           setProgress(2*i);
        }
       return null;
    }

    @Override
    protected void done() {
        super.done();
    }



}
